package com.ggg.clothesshop.controller;


import com.ggg.clothesshop.service.AttributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/attribute")
public class AttributeController {

    @Autowired
    AttributeService attributeService;

    //获取所有属性的信息
    @ResponseBody
    @RequestMapping("/selectAll")
    public Object selectAllUser(){
        return attributeService.selectAll();
    }
}
